package cn.ssm.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.ssm.pojo.OrderDetail;

/**
 * 订单详情映射接口类
 * 
 * @author 黄少涛
 *
 */
public interface OrderDetailMapper {

	// 查询全部订单
	List<OrderDetail> getOrderList(Map<String, Object> paramas);

	// 查询订单总数量
	int getOrderCount(Map<String, Object> map);
	
	//通过订单Id查询订单信息与用户手机号
	OrderDetail  getBuyTimeAndPhoneByOrderId(Map<String, Object> map);
	
	//根据排片id与订单座位查找座位是否已订
	int getOrderSeatBySchedule(Map<String, Object> map);
	
	// 查询日期价格总和 
	double getTodaySum(Map<String, Object> map);
	
	//查询每月订单总数
	List<String> getOrderMonthData();
	
	
	//增加订单
	int addOrder(Map<String, Object> map);
	
	//查询最新的订单id与购买时间
	OrderDetail getOrderMaxIdMaxBuyDate();
	
	//修改订单
	int updateOrder(Map<String, Object> map);
	
	//删除订单
	int deleteOrder(Map<String, Object> map);
	
	//获取订单状态id
	int getOrderIsActiveId (Map<String, Object> map);
	
	
	
	
	
	
	
	
	//根据UserName查订单总数   朱海松
	int getCountByUserName(Map<String, Object> paramas);

	//根据UserName查订单  朱海松
	List<OrderDetail> getListByUserName(Map<String, Object> paramas);


}
